.sidebar {
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.08);
    transition: width 0.2s ease;
    z-index: 10;
    overflow: hidden;
}

.sidebarHeader {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    overflow: hidden;
}

.logo h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    white-space: nowrap;
    background: linear-gradient(135deg, #1890ff 0%, #52c41a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.collapseButton {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.collapseButton:hover {
    background-color: rgba(0, 0, 0, 0.06);
}

.menu {
    border: none;
    flex: 1;
    background: transparent !important;
    width: 100% !important;
}

.menu :global(.ant-menu-item) {
    margin: 4px 8px !important;
    border-radius: 6px;
    height: 40px;
    display: flex;
    align-items: center;
    width: calc(100% - 16px) !important;
}

.menu :global(.ant-menu-item-selected) {
    background: linear-gradient(135deg, #1890ff 0%, #52c41a 100%) !important;
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.3);
}

.menu :global(.ant-menu-item-selected) :global(.ant-menu-title-content) {
    color: white !important;
}

.menu :global(.ant-menu-item-selected) :global(.anticon) {
    color: white !important;
}

.menu :global(.ant-menu-item):not(:global(.ant-menu-item-selected)):hover {
    background-color: rgba(24, 144, 255, 0.1) !important;
}

.bottomMenu {
    margin-top: auto;
    flex-shrink: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(0);
    }

    .sidebar.collapsed {
        transform: translateX(-100%);
    }
}